package com.entity;

import net.sf.json.JSON;
import net.sf.json.JSONObject;

import java.util.Date;

/**
 * @author Mathison
 * @Title: Order
 * @Package: com.entity
 * @Description: 订单实体类
 * @date 2021/11/16 9:15
 **/
public class Order {
    private int order_id;
    private int merchant_id;
    private int user_id;
    private String order_createTime;
    private JSONObject good_amount;
    private JSONObject receiver_address;
    private JSONObject good;
    private boolean status;
    private boolean isPay;

    //Get start


    public boolean isPay() {
        return isPay;
    }

    public boolean getStatus() {
        return status;
    }

    public JSONObject getGood() {
        return good;
    }

    public JSONObject getReceiver_address() {
        return receiver_address;
    }

    public int getMerchant_id() {
        return merchant_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public String getOrder_createTime() {
        return order_createTime;
    }

    public int getOrder_id() {
        return order_id;
    }

    public JSONObject getGood_amount() {
        return good_amount;
    }
//Get end


    //Set start


    public void setPay(boolean pay) {
        isPay = pay;
    }

    public void setGood(JSONObject good) {
        this.good = good;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public void setMerchant_id(int merchant_id) {
        this.merchant_id = merchant_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public void setOrder_createTime(String order_createTime) {
        this.order_createTime = order_createTime;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public void setGood_amount(JSONObject good_amount) {
        this.good_amount = good_amount;
    }

    public void setReceiver_address(JSONObject receiver_address) {
        this.receiver_address = receiver_address;
    }
//Set end

    @Override
    public String toString() {
        return "{" +
                "order_id=" + order_id +
                ", merchant_id=" + merchant_id +
                ", user_id=" + user_id +
                ", order_createTime=" + order_createTime +
                ", good_amount=" + good_amount +
                ", receiver_address=" + receiver_address +
                ", good=" + good +
                ", status=" + status +
                '}';
    }
}
